// static 方法

class Person {
    constructor(name){
        this.name = name
    }

    say(){
        console.log(this.name)
    }

    static create(name){
        return new Person(name)
    }
}

let p =Person.create("tom")
p.say()